<%= render :partial =>'/store/toolbar'%>
<div id="content_container">
 <div class="login_reg change_password">
  <h1>
    修改密码
  </h1>
  <div style="padding:1em;">
    <%= error_messages_for :user %>
    <div class="form">
      <% form_tag "/users/update_password/#{session[:user_id]}" do |f| -%>
        <p><label for="old_password">旧密码</label>
          <input name='old_password' id='old_password'  type="password" ></input></p>

        <p><label for="password">密码</label>
        <%= password_field :user,:password %></p>

        <p><label for="password_confirmation">密码确认</label>
        <%= password_field :user,:password_confirmation %></p>
        <%= image_submit_tag "/images/save_button.gif",:style=>"border:none;margin-left:125px;" %>
        <a href="/store/mine" style="text-decoration:none">
          <img alt="cancel" src="/images/cancel.gif" title="取消" />
        </a>
      <% end -%>
    </div>
  </div>
 </div>
</div>
